import 'core-js/fn/promise' // to avoid err: 'Promise is undefined.'
import Vue from 'vue'
import ElementUI from 'element-ui'
import App from './App.vue'

Vue.use(ElementUI)

/*
// no use vue-router
const app = new Vue({
	el: '#app',
	template: '<App/>',
	components: {
		App
	}
});
*/

import router from './routes/index.js'

const app = new Vue({
	router: router,
	render: h => h(App)
}).$mount('#app')